<?php
namespace Orx\Mailer\MailBox\Message;
/**
 * Message Receiver.
 *
 * It represant a receiver of a message (because then could be multiple)
 *
 * @author Xavier VILAIN
 * @package Hive\Message
 * @property int 		$messageid 	Message Unique Id
 * @property int		$receiverid	Receiver id (unique for one message)
 * @property string	 	$email		Receiver Email
 * @property string	 	$name	 	Receiver Name (can be null)
 * @property string 	$reference	In line reference id
 * @property int	 	$reference_class_id	Id of the reference class (@see Reference Object)
 * 
 * @method array box()
 */
class Receiver extends \Fox\Object {
	
	/**
	 * Link to Mailbox
	 * @var string
	 */
	const LINK_MESSAGE = 'message';
}
\Fox\Dao::infos(Receiver::className(),new \Fox\Object\Info('message_receivers', \Fox\Databases::DB_APP))
->addAutoIncrementField('receiverid');